<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_common_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_common_id" data-rule="required" data-source="goods/common/index" class="form-control selectpage form-control" name="row[goods_common_id]" type="hidden" value="{$row.goods_common_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_name" data-rule="required" class="form-control form-control" name="row[goods_name]" type="text" value="{$row.goods_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_jingle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_jingle" data-rule="required" class="form-control form-control" name="row[goods_jingle]" type="text" value="{$row.goods_jingle}">
        </div>
    </div>
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attr_value_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-attr_value_ids" data-rule="required" data-source="attr/value/index" data-multiple="true" class="form-control selectpage form-control" name="row[attr_value_ids]" type="text" value="{$row.attr_value_ids}">
        </div>
    </div>-->
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_id" data-rule="required" data-source="store/index" class="form-control selectpage form-control" name="row[store_id]" type="text" value="{$row.store_id}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_name" class="form-control form-control" name="row[store_name]" type="text" value="{$row.store_name}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Classes_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classes_id" data-rule="required" data-source="classes/index" class="form-control selectpage form-control" name="row[classes_id]" type="text" value="{$row.classes_id}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_price" data-rule="required" class="form-control form-control" step="0.01" name="row[goods_price]" type="number" value="{$row.goods_price}">
        </div>
    </div>
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount_price" data-rule="required" class="form-control form-control" step="0.01" name="row[discount_price]" type="number" value="{$row.discount_price}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Storage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-storage" data-rule="required" class="form-control form-control" name="row[storage]" type="number" value="{$row.storage}">
        </div>
    </div>
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sale')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale" data-rule="required" class="form-control form-control" name="row[sale]" type="number" value="{$row.sale}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-goods_image" data-rule="required" class="form-control form-control" size="50" name="row[goods_image]" type="text" value="{$row.goods_image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-goods_image" class="btn btn-danger plupload" data-input-id="c-goods_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-goods_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-goods_image" class="btn btn-primary fachoose" data-input-id="c-goods_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-goods_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-goods_image"></ul>
        </div>
    </div>
    {if condition="$row['goods_verify'] eq 1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-status" data-rule="required" class="form-control selectpicker" name="row[status]">
                {foreach name="statusList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.status"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-reason" data-rule="required" class="form-control form-control" disabled name="row[reason]" type="text">{$row.reason}</textarea>
        </div>
    </div>
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_verify')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-goods_verify" data-rule="required" class="form-control selectpicker" name="row[goods_verify]">
                {foreach name="goodsVerifyList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.goods_verify"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_verifyremark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-goods_verifyremark" data-rule="" disabled class="form-control form-control" name="row[goods_verifyremark]" type="text" >{$row.goods_verifyremark}</textarea>
        </div>
    </div>
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_commend')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-goods_commend" data-rule="required" class="form-control selectpicker" name="row[goods_commend]">
                {foreach name="goodsCommendList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.goods_commend"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>-->


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
